using System;

namespace ChessKit.ChessLogics
{
  [Flags]
  internal enum CompactPiece
  {
    EmptyCell,

    Pawn = 1,
    Bishop,
    Knight,
    Rook,
    Queen,
    King,

    IsBlack = 0x8,

    WhitePawn = Pawn,
    WhiteBishop = Bishop,
    WhiteKnight = Knight,
    WhiteRook = Rook,
    WhiteQueen = Queen,
    WhiteKing = King,

    BlackPawn = IsBlack | Pawn,
    BlackBishop = IsBlack | Bishop,
    BlackKnight = IsBlack | Knight,
    BlackRook = IsBlack | Rook,
    BlackQueen = IsBlack | Queen,
    BlackKing = IsBlack | King,
  }
}